Learn R Programming

GISTools (version 1.0-2)

Polygon Label Points: Number of Points in Each Polygon

Description

Given a set of polygons, returns the label point for each polygon in a SpatialPoints or a sf POINT object.

Usage

poly.labels(polys)

Value

SpatialPoints or sf POINT object containing the label point for each polygon, respectively.

Arguments

polys

A SpatialPolygons or SpatialPolygonsDataFrame or sf -POLYGON or - MULTIPOLYGON object.

Author

Chris Brunsdon, Binbin Lu